package com.unity.bh3.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.unity.bh3.entity.Character;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 角色Mapper接口
 */
@Mapper
public interface CharacterMapper extends BaseMapper<Character> {
    
    /**
     * 查询所有角色列表
     * @return 角色列表
     */
    @Select("SELECT * FROM `character` ORDER BY rarity DESC, id ASC")
    List<Character> selectAllCharacters();
}